package org.zavgame.ejb;

import java.util.List;

import javax.ejb.Remote;

/**
 * Remote Player interface.
 * Use it on remote to access the service.
 * 
 * @author alexey
 *
 */
@Remote
public interface PlayerInterface
{

   /**
    * Update balance method.
    * Use it to update Player balance.
    * 
    * @param player
    * @return the PlayerResponse
    * @throws Exception
    */
   public PlayerResponse balanceUpdate(PlayerRequest player) throws Exception;

   /**
    * Get balance method.
    * Use it to get current Player balance.
    * 
    * @param player
    * @return the PlayerResponse
    */
   public PlayerResponse getBalance(PlayerRequest player);

   /**
    * Get Player history method.
    * Use it to get all Player balance changes.
    * 
    * @param request
    * @return the list of PlayerResponse
    */
   public List<PlayerResponse> getPlayerHistory(PlayerRequest request);

}